package com.agricultureaigclargemodel.history.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.agricultureaigclargemodel.common.annotation.Excel;
import com.agricultureaigclargemodel.common.core.domain.BaseEntity;

/**
 * 聊天历史记录对象 chat_history
 * 
 * @author Evanescent
 * @date 2025-06-05
 */
public class ChatHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 对话ID，唯一标识一次完整对话 */
    @Excel(name = "对话ID，唯一标识一次完整对话")
    private String conversationId;

    /** 聊天记录ID，每条记录的唯一标识 */
    @Excel(name = "聊天记录ID，每条记录的唯一标识")
    private String chatId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 聊天时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "聊天时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date chatTime;

    /** 用户输入内容 */
    @Excel(name = "用户输入内容")
    private String userInput;

    /** 机器人回复内容 */
    @Excel(name = "机器人回复内容")
    private String botResponse;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setConversationId(String conversationId) 
    {
        this.conversationId = conversationId;
    }

    public String getConversationId() 
    {
        return conversationId;
    }

    public void setChatId(String chatId) 
    {
        this.chatId = chatId;
    }

    public String getChatId() 
    {
        return chatId;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setChatTime(Date chatTime) 
    {
        this.chatTime = chatTime;
    }

    public Date getChatTime() 
    {
        return chatTime;
    }

    public void setUserInput(String userInput) 
    {
        this.userInput = userInput;
    }

    public String getUserInput() 
    {
        return userInput;
    }

    public void setBotResponse(String botResponse) 
    {
        this.botResponse = botResponse;
    }

    public String getBotResponse() 
    {
        return botResponse;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("conversationId", getConversationId())
            .append("chatId", getChatId())
            .append("userId", getUserId())
            .append("chatTime", getChatTime())
            .append("userInput", getUserInput())
            .append("botResponse", getBotResponse())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
